.line {
    height: 2rpx;
    animation: scan 3s infinite linear;
}

@keyframes scan {
    0% {
        margin-top: 0;
    }

    100% {
        margin-top: 100%;
    }
}